package org.springblade.modules.admin.task.feishu;

import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springblade.common.enums.FeiShuDocumentEnum;
import org.springblade.core.tool.utils.Func;
import org.springblade.modules.admin.dto.feishu.FeiShuBatchDTO;
import org.springblade.modules.admin.dto.feishu.FeiShuFieldsDTO;
import org.springblade.modules.admin.enums.ComplianceStatusEnum;
import org.springblade.modules.admin.enums.ElevatorMaintainStatusEnums;
import org.springblade.modules.admin.service.feishu.ILarkMaintenanceService;
import org.springblade.modules.admin.vo.feishu.LarkMaintainPlanConfigVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * lark elevator score job
 * @author: Sharry
 * @createTime: 2024-06-13 11:16
 * @version: Version-1.0
 */
@Component
@Slf4j
public class LarkElevatorScoreJob {
	@Autowired
	private ILarkMaintenanceService larkMaintenanceService;

	@XxlJob("sendPlanScoreLarkMessageTempFull")
	public void sendPlanScoreLarkMessageTempFull(){
		XxlJobHelper.handleSuccess("凤仪的评分数据表-[执行]开始");
		try{
			larkMaintenanceService.sendPlanScoreLarkMessageTempFull();
			XxlJobHelper.handleSuccess("凤仪的评分数据表-[执行]成功");
		}catch (Exception e){
			XxlJobHelper.handleSuccess("凤仪的评分数据表-[执行]失败"+e);
		}
	}

}
